import http from '../utils/http.js'
/**
 * 登录
 */
export const loginApi = (data) => {
  return http.post(`/user/login/login_auth`, data)
}
/**
 * 验证码
 */
export const captchaApi = (data) => {
  return http.post(`/user/login/captcha`, data, { responseType: 'blob' })
}
/**
 * 验证码
 */
export const logoutApi = () => {
  return http.post(`/user/login/logout`)
}
/**
 * 禁用/启用账号
 */
export const disableApi = (username) => {
  return http.get(`/user/login/disable/${username}`)
}
/**
 * 修改密码
 */
export const changePasswordApi = (data) => {
  return http.post(`/user/login/changePassword`, data)
}
/**
 * 找回密码
 */
export const findPasswordApi = (data) => {
  return http.post(`/user/login/findPassword`, data)
}
